package com.ffox.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * <p>
 * 教师信息表
 * </p>
 *
 * @author freefox
 * @since 2025-08-29
 */
@Getter
@Setter
@ToString
@TableName("teachers")
public class Teachers {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 教师账户id
     */
    @TableField("user_num")
    private String userNum;

    /**
     * 工号
     */
    @TableField("teacher_id")
    private String teacherId;

    /**
     * 部门
     */
    @TableField("department")
    private String department;

    /**
     * 联系电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 状态(0:在职业，1:休假)
     */
    @TableField("status")
    private Integer status;

    /**
     * 所属学校
     */
    @TableField("school_num")
    private String schoolNum;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;
}
